HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/firestore/fields/ttls/list.yaml
- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: List all fields used as a Time To Live expiration setting.
    description: |
      List fields that give an expiration timestamp for documents in a collection group or kind.
    examples: |
      The following command lists all TTL fields for the whole database:

        $ {command}

  request:
    collection: firestore.projects.databases.collectionGroups.fields
    static_fields:
      filter: ttlConfig:*

  response:
    id_field: name

  arguments:
    resource:
      help_text: |
        Collection group of the ttl.

        This can be omitted to include fields across all collection groups (kinds).
      is_positional: false
      # By using collection_group_with_default this resource arg is correctly determined to be
      # optional and can use the special '-' collection group if it's not specified.
      spec: !REF googlecloudsdk.command_lib.firestore.resources:collection_group_with_default

  output:
    format: yaml(name, ttlConfig)